<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of AuthController
 *
 * @author xiling
 */
class AuthController extends SBaseController {
    
    /*
     * 获取当前角色可使用的功能列表 
     */
    public function actionIndex()
    {

        
    }
    
    /*
     * 获得当前用户的可操作权限列表
     * 
     */
    public function actionList()
    {
        $anser = Helper::getAccessList(Yii::app()->user->id,'');
        UtilsResponder::showSuccess($anser);
    }
    
    public function actionAllItem()
    {
        
    }
    
    /**
     * 
     * 获得所有可用的操作
     */
    public function actionAll()
    {
        
        $anser = Helper::getAccessList(Yii::app()->user->id,'');
        UtilsResponder::showSuccess($anser);
    }
    
    public function actionRoleList()
    {
        $anser = Helper::getRoleList();
        UtilsResponder::showSuccess($anser);
    }
}

?>
